<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ include file="/WEB-INF/jsp/common/include.jsp" %>

<div class="content">
   <ul class="sf-menu sf-horizontal sf-style-pomegranate sf-js-enabled sf-shadow" id="superfish-1">
       <c:forEach items="${parent_menu_list}" var="menu" varStatus="sta">
           <li>
               <a href="${menu.url}" >${menu.title}</a>
               
                <ul style="float: none; width: 12em; display: none; visibility: hidden;">
                   <c:forEach items="${menu.subMenus}" var="subMenu" varStatus="staSub">
                       <li style="float: left; width: 100%; white-space: normal;">
                           <c:choose>
                              <c:when test="${fn:startsWith(subMenu.url, '/')}">
                                  <c:url value="${subMenu.url}" var="menuUrl" scope="page" />
                              </c:when>
                              <c:otherwise>
                                  <c:set var="menuUrl" value="${subMenu.url}" scope="page" />
                              </c:otherwise>
                           </c:choose>
                           <a href="${menuUrl}" style="float: none; width: auto;">${subMenu.title}</a>
                       </li>
                   </c:forEach>
               </ul>  
           </li>
       </c:forEach>
    </ul>
</div>